package com.chujian.framework.util.mybatis.wrapper;

import java.time.temporal.Temporal;

/**
 * 日期类
 */
public class FieldDateWrapperBuilder implements IFieldWrapperBuilder {

    @Override
    public boolean build(WrapperUnit unit) {
        if (Temporal.class.isAssignableFrom(unit.field.getType())) {
            unit.wrapper.eq(unit.col, unit.value);
            return true;
        }
        return false;
    }
}
